﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using AppAcc.Models;
using AppAcc.Views;
namespace AppAcc.Views
{
    public partial class FrmDoiTac : DevComponents.DotNetBar.Office2007RibbonForm
    {
        public FrmDoiTac()
        {
            InitializeComponent();
        }
        AppAccContext db = new AppAccContext();
       // private int idtam = 0;
        private void btX_ThemMoi_Click(object sender, EventArgs e)
        {
            Views.FrmThemDoiTac k = new Views.FrmThemDoiTac();
            k.ShowDialog();
        }
        private void load_doitac()
        {
            this.dOiTacTableAdapter.Fill(this.phanMenKeToanDataSet1.DOiTac);
            cbX_NhomDoitac.Text = dataGridViewX_DoiTac.Rows[0].Cells[0].Value.ToString();
        }
        private void FrmDoiTac_Load(object sender, EventArgs e)
        {
           load_doitac();
        }
    }
}
